﻿Imports System.Configuration

Public Module ThisApplication

    Public Property Environment As String = ConfigurationManager.AppSettings("Environment")

    ReadOnly Property ConnectionString As String
        Get
            Return ConfigurationManager.ConnectionStrings("Apps_" + ThisApplication.Environment).ConnectionString
        End Get
    End Property

    ReadOnly Property ClientID As String
        Get
            Return ConfigurationManager.AppSettings("ClientID_" + ThisApplication.Environment)
        End Get
    End Property

    ReadOnly Property EmailAddress As String
        Get
            Return ConfigurationManager.AppSettings("EmailAddress_" + ThisApplication.Environment)
        End Get
    End Property

    ReadOnly Property ClientSecret As String
        Get
            Return ConfigurationManager.AppSettings("ClientSecret_" + ThisApplication.Environment)
        End Get
    End Property

    ReadOnly Property RedirectURI As String
        Get
            Return ConfigurationManager.AppSettings("RedirectURI_" + ThisApplication.Environment)
        End Get
    End Property

End Module
